home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / boss.arc / HELLO.C < prev    next >
Text File  |  1986-11-14  |  729b  |  39 lines

  1. #include "windows.h"
  2. main()
  3. {
  4. WINDOWPTR w1;                   /* window handle */
  5. int batrib;                     /* border atrib */
  6. int watrib;                     /* window atrib */
  7. register i;
  8.  
  9. /*
  10.  * Set attributes:
  11.  *
  12.  *      border - blue/white box
  13.  *      window - white background/black letters
  14.  *
  15. */
  16.  
  17.   batrib = v_setatr(BLUE,WHITE,0,0);
  18.   watrib = v_setatr(WHITE,BLACK,0,0);
  19.  
  20. /*
  21.  * Open window at 0,0 - 25 cells wide and 10 cells high
  22. */
  23.  
  24.   w1 = wn_open(0,0,0,25,10,watrib,batrib);
  25.   if(!w1) exit();
  26.  
  27. /*
  28.  * Print the famous string and wait for key to be struck.
  29.  * Close window on key strike.. exit.
  30. */
  31.  
  32.   wn_printf(w1,"Hello World...");
  33.   v_getch();
  34.   wn_close(w1);
  35. }
  36.  
  37. /* End */
  38.  
  39.